#!/bin/bash

# 判断 $HOME/.tmux.conf 是否存在，不存在则创建
if [ ! -f $HOME/.tmux.conf ]; then
    echo 'set-option -g mouse on' >$HOME/.tmux.conf
    echo 'set -g pane-border-status top' >>$HOME/.tmux.conf
    echo 'set-option -g allow-rename off' >>$HOME/.tmux.conf
    echo 'set -g pane-border-format "#{pane_index} #T #{pane_current_command}"' >>$HOME/.tmux.conf
    echo 'bind-key -T prefix R send-keys "renamePane" C-m' >>$HOME/.tmux.conf
    echo '' >>$HOME/.tmux.conf
fi
